package com.bingxue.edu.framework.limiter.exception;

import com.bingxue.edu.framework.common.constant.HttpStatus;
import com.bingxue.edu.framework.exception.CommonErrorCode;
import com.bingxue.edu.framework.exception.ErrorCodeException;

/**
 * 限流异常
 *
 * @author panbo
 * @since 2024/8/29
 */
public class RateLimiterException extends ErrorCodeException {

    @Override
    public int getStatusCode() {
        return HttpStatus.BAD_REQUEST.getCode();
    }

    public RateLimiterException(String message) {
        super(CommonErrorCode.REQUEST_FAILED, message);
    }

}
